SET(CMAKE_SYSTEM_NAME Generic)

SET(CMAKE_C_COMPILER  C:/ACOINFO/RealEvo/compiler/mips-sylixos-toolchain/bin/mips-sylixos-elf-gcc.exe)
SET(CMAKE_CXX_COMPILER C:/ACOINFO/RealEvo/compiler/mips-sylixos-toolchain/bin/mips-sylixos-elf-g++.exe)

INCLUDE_DIRECTORIES("D:/SylixOS_WS/mips/libsylixos/SylixOS" "D:/SylixOS_WS/mips/libsylixos/SylixOS/include" )
INCLUDE_DIRECTORIES("D:/SylixOS_WS/mips/libsylixos/SylixOS/include/network")
set(CMAKE_C_FLAGS "-march=mips32  -EL -G 0 -mno-branch-likely -mhard-float  -O2 -g1 -gdwarf-2 -Wall -fmessage-length=0 -fsigned-char -fno-short-enums -fno-strict-aliasing   -fPIC -mabicalls -DSYLIXOS")
                   
set(CMAKE_CXX_FLAGS "-march=mips32  -EL -G 0 -mno-branch-likely -mhard-float -mabicalls -Wl,-shared -fPIC -shared" )

LINK_DIRECTORIES("D:/SylixOS_WS/mips/libsylixos/Release" "D:/SylixOS_WS/mips/libsylixos/Debug" "D:/SylixOS_WS/mips/libcextern/Release")
LINK_LIBRARIES("D:/SylixOS_WS/mips/libsylixos/Release/libdsohandle.a")

set(CMAKE_EXE_LINKER_FLAGS "-fPIC -shared -lm -lgcc -lstdc++ -lcextern -lvpmpdm")
#-nostdlib
SET(CMAKE_C_COMPILER_FORCED TRUE)
SET(CMAKE_CXX_COMPILER_FORCED TRUE)
